import request from '@/utils/request'

// 收货单--列表
export function queryListOrder(data) {
  return request({
    url: '/wms_v1_pc/receive-order/list-order',
    method: 'POST',
    data
  })
}

// 收货单--下游单号
export function getDownOrder(params) {
  return request({
    url: '/wms_v1_pc/receive-order/get-down-order',
    method: 'GET',
    params
  })
}

// 收货单--操作记录
export function getListLog(params) {
  return request({
    url: '/wms_v1_pc/receive-order/list-log',
    method: 'GET',
    params
  })
}

// 收货单--明细
export function getOrder(params) {
  return request({
    url: '/wms_v1_pc/receive-order/get-order',
    method: 'GET',
    params
  })
}

// 收货单--重新点数
export function relateNum(data) {
  return request({
    url: '/wms_v1_pc/receive-order/recheck-num',
    method: 'POST',
    data
  })
}

// 收货单--送上架
export function createShelveOrder(data) {
  return request({
    url: '/wms_v1_pc/receive-order/create-shelve-order',
    method: 'POST',
    data
  })
}

// 收货单--送质检
export function createQcOrder(data) {
  return request({
    url: '/wms_v1_pc/receive-order/create-qc-order',
    method: 'POST',
    data
  })
}

// 收货单--送加工
export function createProcessOrder(data) {
  return request({
    url: '/wms_v1_pc/receive-order/create-process-order',
    method: 'POST',
    data
  })
}

// 收货单--加异常
export function createAbnormal(data) {
  return request({
    url: '/wms_v1_pc/receive-order/create-abnormal',
    method: 'POST',
    data
  })
}